<script>
	export default {
		onLaunch: async function() {
			// uni.loadFontFace({
			// 	family: 'Bitstream Vera Serif Bold',
			// 	source: 'url("https://sungd.github.io/Pacifico.ttf")',
			// 	success() {
			// 		console.log('success')
			// 	}
			// })
			this.$store.dispatch('config/getLocation')
			
	// 同步方式
			const info = uni.getSystemInfoSync();
			console.log('uni.getSystemInfoSyn',info);
			console.log("App Launch");
			// if (Object.keys(this.$store.state.config.wz).length == 0) {
			// 	await this.$store.dispatch("config/getLocation");
			// }
		},
		onShow: function() {
			console.log("App Show");
		},
		onHide: function() {
			console.log("App Hide");
		},
	};
</script>
<style>

</style>
<style lang="scss">
	
	.goodlemarker {
		background: #fff;
		width: 220rpx;
		height: 92rpx;
		border-top-left-radius: 24rpx;
		border-top-right-radius: 50rpx;
		border-bottom-right-radius: 50rpx;
		border-bottom-left-radius: 12rpx;
		display: flex;
		align-items: center;
		padding-left: 8rpx;
		position: relative;
		box-sizing: border-box;

		.marker {
			width: 20rpx;
			height: 20rpx;
			background: #e93426;
			position: absolute;
			left: -10rpx;
			bottom: -10rpx;
			border-radius: 50%;
			z-index: -1;

			&::after {
				box-sizing: border-box;
				width: 40rpx;
				height: 40rpx;
				// background: #e93426;
				position: absolute;
				content: "";

				border: 4rpx solid rgba(233, 52, 38, 0.6);
				left: -10rpx;
				bottom: -10rpx;
				border-radius: 50%;
				z-index: -1;
			}
		}

		.kx {
			font-size: 24rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			background: #fff;
			width: 76rpx;
			height: 76rpx;
			border-top-left-radius: 12rpx;
			border-top-right-radius: 24rpx;
			border-bottom-right-radius: 24rpx;
			border-bottom-left-radius: 6rpx;
			background: rgba(32, 147, 245, 0.1);

			.text {
				color: #2093f5;
				font-weight: bold;
			}
		}

		.je {
			font-weight: bold;
			color: #f43836;
			flex: 1;
			text-align: center;
		}

		&.active {
			background: linear-gradient(to right, #f43836, #fbb53c);

			.kx {
				background-color: #fff;

				.text {
					color: #f96a30;
				}
			}

			.je {
				color: #fff;
			}
		}
	}


	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "@/style/icon.css";

	.anchorBL {
		opacity: 0;
	}

	page {
		line-height: 1;
	}

	* {
		box-sizing: border-box;
		// line-height: 1;
		// color: #333;
		// font-family: "PingFang SC", Arial, "Microsoft YaHei", sans-serif;
	}
</style>